//
//  BottomTableViewCell.m
//  SUZHOUBANK
//
//  Created by saberLily on 16/4/20.
//  Copyright © 2016年 RuiFeng-WGCC. All rights reserved.
//

#import "BottomTableViewCell.h"
#define TitleCellWidth 200
#define TitleCellHeight 200
@interface BottomTableViewCell()

@end
@implementation BottomTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addSubview:self.cellTitleLabel];
        [self addSubview:self.cellDetailLabel];
    }
    return self;
}

#pragma mark *** getters ***
-(UILabel *)cellTitleLabel{
    if (!_cellTitleLabel) {
        _cellTitleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, TitleCellWidth, TitleCellHeight)];
        _cellTitleLabel.text = @"标题";
        _cellTitleLabel.textAlignment = NSTextAlignmentCenter;
        _cellTitleLabel.layer.borderWidth = 1.0f;
    }
    return _cellTitleLabel;
}
-(UILabel *)cellDetailLabel{
    if (!_cellDetailLabel) {
        _cellDetailLabel =[[UILabel alloc] initWithFrame:CGRectMake(10+TitleCellWidth, 0, 930, TitleCellHeight)];
        _cellDetailLabel.text = @"dedededasdasdasdasdasddddd";
        _cellDetailLabel.layer.borderWidth = self.cellTitleLabel.layer.borderWidth;
        _cellDetailLabel.textAlignment = 1;
        _cellDetailLabel.numberOfLines = 0;
//        [_cellDetailLabel sizeToFit];
    }
    return _cellDetailLabel;
}
@end
